const expect=require('chai').expect;


describe('instanceof',()=>{
    it('array',()=>{
        expect(new Array()).instanceof(Array);
    });

    it('array->object',()=>{
        expect(new Array()).instanceof(Object);
    });

    it('array->Function',()=>{
        expect(new Array()).instanceof(Function);
    });

    it('new foo',()=>{
        let Foo=function(){};
        let foo=new Foo();
        expect(foo).instanceof(Foo);
    });

    it('class',()=>{
        let Foo=class {};
        let foo=new Foo();
        expect(foo).instanceof(Foo);
    });

});